    {include file="../view/head" /}
    <style>
    /*页面自定义样式*/
        .title h5,.titleb i{
            display: -webkit-box;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
            word-break: break-all;
            white-space: normal !important;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
        .panel-heading>form{
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-right: 40px;
        }
        .panel-heading>form>div>label{
            width: 100%;
            background: #666;
            color: #fff;
            border-radius: 4px 4px 0 0;
            border: 1px solid #666;
            margin: 0;
            text-align: center;
        }
        .panel-heading>form>div>.form-control{
            border-radius: 0 0 4px 4px;
            border: 1px solid #666;
            padding: 0;
            height: auto;
        }
        td>.btn{font-weight: normal;}
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-md-12">
                            <!-- col-lg-12 start here -->
                            <div class="panel panel-default toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-body">
                                    <table class="table table-bordered table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th>编号</th>
                                                <th>名称</th>
                                                <th>价格</th>
                                                <th>库存</th>
                                                <th>采矿速度(G)</th>
                                                <th>限购限量</th>
                                                <th>缩略图</th>
                                                <th>添加时间</th>
                                                <th colspan="4">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        {foreach $lists as $list} 
                                        <tr>
                                            <td>{$list.id}</td>
                                            <td>{$list.name}</td>
                                            <td>{$list.price}</td>
                                            <td>{$list.stock}</td>		 
                                            <td>{$list.kjsl}</td>	
                                            <td>{$list.limit}</td>	
                                            <td><img src="{$list.imagepath}" alt="" style="max-height: 60px;"></td>

                                            <td>{$list.addtime|date="Y-m-d H:i:s",###}</td>		 
                                            <td>
                                                <a class="mt5 btn btn-xs btn-info" href="{:url('project/project',['id'=>$list.id])}">修改</a>
                                             <!--   <a class="mt5 btn btn-xs btn-danger" href="{:url('project/delProject',['id'=>$list.id])}">删除</a> -->
                                            {if condition="$list.zt eq '0'"}
                                                <a class="mt5 btn btn-xs btn-info" href="{:url('project/ztProject',['id'=>$list.id ,'zt' => '1'])}/zt/1">上架</a>
                                            {elseif condition="$list.zt eq '1'"/}	
                                                <a class="mt5 btn btn-xs btn-info" href="{:url('project/ztProject',['id'=>$list.id ,'zt' => '0'])}/zt/0">下架</a>
                                            {/if}
                                            </tr> 
                                        {/foreach}
                                        </tbody>
                                    </table>
                                    <div class="row">
                                        <div class="col-md-6">
                                            {$lists->render()}
                                        </div>
                                        <div class="col-md-6">
                                            <p>总数：{$lists->total()}</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script>

        </script>
    </body>
</html>